#include <stdio.h>

int main()
{
	char n;
	int sign; 
	for(sign=0;sign<4;sign++){
		scanf("%c",&n);
		if('a'<=n&&n<='z') printf("%c",n-32);
		else if('A'<=n&&n<='Z') printf("%c",n+32);
		else if('0'<=n&&n<='9') printf("*");
		else printf("@");
	}
	return 0;
}
